﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Test1
{
    public partial class Login : Form
    {
        
        public Login()
        {
            InitializeComponent();
        }
        public static string strName;

        #region 09-01,02,08
        private void button1_Click(object sender, EventArgs e)
        {
            /*Form1 frm1 = new Form1();
            frm1.Show();
            this.Hide(); */
            if (textBox1.Text != "")
            {
                strName = textBox1.Text;
                Form01 frm = new Form01();
                this.Hide();
                frm.Show();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
        #endregion

        #region 09-03
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButton1.Checked)
                MessageBox.Show("性别：男");
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            if (radioButton2.Checked)
                MessageBox.Show("性别：女");
        }
        #endregion


    }
}
